package com.system.service;

import com.system.po.AddresslistCustom;
import com.system.po.CourseCustom;

import java.util.List;

/**
 *
 * 通讯录业务层
 */
public interface AddresslistService {

    //根据id更新通讯录信息
    void upadteById(Integer id, AddresslistCustom addresslistCustom) throws Exception;

    //根据id删除通讯录信息
    Boolean removeById(Integer id) throws Exception;

    //获取分页查询通讯录信息
    List<AddresslistCustom> findByPaging(Integer toPageNo) throws Exception;

    //插入通讯录信息
    Boolean save(AddresslistCustom addresslistCustom) throws Exception;

    //获取通讯录总数
    int getCountCouse() throws Exception;

    //根据id查询
    AddresslistCustom findById(Integer id) throws Exception;

    //根据名字查询
    List<AddresslistCustom> findByName(String name) throws Exception;
}
